const sys = require(`./system.js`)
const title = '默认'
const $ = sys.$(title)
const startTime = Date.now()
new Promise(async resolve => {
  const resp = await $.publicJS.baiduApi($, startTime)
  console.log('resp', resp)
  const endTime = Date.now()
  console.log('1任务结束', `消耗时长：${endTime - startTime}ms`)
})



// sys.run($, 'task:one', (resList, cookie, index, username, password, item) => {
//     return new Promise(async resolve => {
//         // 请求接口
//         // const info = await $.publicJS.userInfo($, cookie)
        
//         // 追加信息
//         resList.push({
//             "序号": index + 1,
//             username: username,
//             password: password,
//         })
//         resolve(resList)
//     })
// }, (resList) => {
//     console.log('任务结束 resList:', resList)

//     if (resList && resList.length > 0) {
//         // 处理存储列表
//         resList = resList.sort((a1, a2) => {
//             return a1['序号'] - a2['序号']
//         })
//         // 存储列表
//         // $.localStorage.set('task:temp', resList, 'localStorage')
//     }
// })
